package org.example.rpc.server;


import org.example.rpc.common.IUserService;
import org.example.rpc.common.User;

public class UserServiceImpl implements IUserService {
    @Override
    public User getById(Integer id) {
        return User.builder()
                .id(id)
                .name("yangmiao")
                .age(100)
                .sex(1)
                .build();
    }

    @Override
    public User getByUsername(String userName) {
        return User.builder()
                .name(userName)
                .build();
    }

}


